package com.zxp.springcloud.service.impl;

import com.zxp.springcloud.dao.PaymentDao;
import com.zxp.springcloud.entities.Payment;
import com.zxp.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description:
 * @author: 张新朋
 * @time: 2020/4/30 16:28
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment selectById(Long id) {
        return paymentDao.selectById(id);
    }
}